package org.example.computerdesign.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.example.computerdesign.domain.po.MedicalCode;

import java.util.List;
/**
 * @author 朱文权
 * */
@Mapper
public interface MedicalCodeMapper extends BaseMapper<MedicalCode> {
    @Select("select * from medical_codes where pid=#{pid}")
    List<MedicalCode> selectByPid(Long pid);
    @Delete("delete from medical_codes where pid=#{pid}")
    Integer deleteByPid(Long pid);
}
